import request from '@/utils/request'

// 查询会员营销餐饮折扣管理列表
export function listCateringRetail(query) {
  return request({
    url: '/member/cateringRetail/list',
    method: 'get',
    params: query
  })
}

// 查询会员营销餐饮折扣管理详细
export function getCateringRetail(marketCateringRetailId) {
  return request({
    url: '/member/cateringRetail/' + marketCateringRetailId,
    method: 'get'
  })
}

// 新增会员营销餐饮折扣管理
export function addCateringRetail(data) {
  return request({
    url: '/member/cateringRetail',
    method: 'post',
    data: data
  })
}

// 修改会员营销餐饮折扣管理
export function updateCateringRetail(data) {
  return request({
    url: '/member/cateringRetail',
    method: 'put',
    data: data
  })
}

// 删除会员营销餐饮折扣管理
export function delCateringRetail(marketCateringRetailId) {
  return request({
    url: '/member/cateringRetail/' + marketCateringRetailId,
    method: 'delete'
  })
}

// 导出会员营销餐饮折扣管理
export function exportCateringRetail(query) {
  return request({
    url: '/member/cateringRetail/export',
    method: 'get',
    params: query
  })
}